package com.lf.web.service.system.webnode;

import com.lf.data.CollectionDAO;
import com.mongodb.CommandResult;

import com.lf.connect.MongoDB;

public class WebNodeDAO extends CollectionDAO {

    public static final String COLLECTION = "c_webNode";

    public WebNodeDAO(MongoDB nosql) {
        super(nosql, COLLECTION);
    }

    public void deleteChannel(String id) {
        String cmd = "deleteChannel('" + id + "')";

        CommandResult cr = this.getNosql().getDB().doEval(cmd);
        System.out.println(cr.toString());
    }
}
